import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const home = resolve => {
    require.ensure(['../Pages/home.vue'], () => {
        resolve(require('../Pages/home.vue'))
    })
}

let routes = [
    {
        path: '/',
        redirect: '/home'
    },
    {
        path: '/home',
        name: 'home',
        component: home
    }
]

export default new Router({
    routes
})

